const contentPath = '/system/self'

export const register = (param) => {
  return uni.$http.usePost(`${contentPath}/register`, param, {
    header: {
      'X-Do-Not-Authenticate': true
    }
  })
}

export const reset = (param) => {
  return uni.$http.usePut(`${contentPath}/reset_info`, param)
}

export const findInfo = () => {
  return uni.$http.useGet(`${contentPath}/info`)
}